package com.caipos.repository.jpa;

import com.caipos.entity.DeviceCommand;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface DeviceCommandJpaRepository extends JpaRepository<DeviceCommand, Long> {
    List<DeviceCommand> findByDeviceIdAndStatusOrderByCreateTimeDesc(String deviceId, String status);
    List<DeviceCommand> findByStatusOrderByCreateTimeDesc(String status);
}
    